package com.liu.AllAnnotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class text {
    public static void main(String[] args) {
        ApplicationContext ApplicationContext = new AnnotationConfigApplicationContext(AllAnnotationConfig.class);
        Person personImpl = (Person) ApplicationContext.getBean("PersonImpl");
        personImpl.add();
    }


}
